from django.urls import path
from django.views.decorators.cache import cache_page
from app import views

urlpatterns = [
    path('checktwopassword/', views.CheckTwoPasswords.as_view(), name='check_two_password'),
    path('login/', cache_page(0)(views.Login.as_view()), name='login'),
    path('register/', cache_page(0)(views.Register.as_view()), name='register'),
    path('getusertokeninfo/', views.GetUserTokenInfo.as_view(), name='get_user_token_info'),
    path('perfectinfo/', views.PerfectInfo.as_view(), name='perfect_info'),
    path('changepassword/', views.PasswordModification.as_view(), name='change_password'),
    path('sendemail/', views.SendEmail.as_view(), name='send_email'),
    path('forgetpassword/', views.ForgetPassword.as_view(), name='forget_password'),
    path('getranklist/', views.GetRankList.as_view(), name='get_rank_list'),
    path('getuserlist/', views.GetUserList.as_view(), name='get_user_list'),
    path('createform/', views.CreateForm.as_view(), name='form_section'),
    path('getpostpage/', views.GetPostPage.as_view(), name='get_post_page'),
    path('getuserstatus/', views.GetUserStatus.as_view(), name='get_user_status'),
    path('changeusercapacity/', views.ChangeUserCapacity.as_view(), name='change_user_capacity'),
    path('resettinguserpassword/', views.ResettingUserPassword.as_view(), name='resetting_user_password'),
    path('addnews/', views.AddNews.as_view(), name='add_news'),
    path('addpost/', views.AddPost.as_view(), name='add_post'),
    path('getmypost/', views.GetMyPost.as_view(), name='get_my_post'),
    path('deletepost/', views.DeletePost.as_view(), name='delete_post'),
    path('undeletepost/', views.UndeletePost.as_view(), name='undelete_post'),
    path('modifypost/', views.ModifyPost.as_view(), name='modify_post'),
    path('getreplypage/', views.GetReplyPage.as_view(), name='get_reply_page'),
    path('addreply/', views.AddReply.as_view(), name='add_reply'),
    path('modifyreply/', views.ModifyReply.as_view(), name='modify_reply'),
    path('deletereply/', views.DeleteReply.as_view(), name='delete_reply'),
    path('getmyreply/', views.GetMyReply.as_view(), name='get_my_reply'),
    path('likeCollection/', views.LikeCollection.as_view(), name='like_collection'),
    path('getpostcollect/', views.GetPostCollect.as_view(), name='get_post_collect'),
]
